package com.hisense.ovcloud.asop.entity.db.def;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

// Auto generate by mybatis-flex, do not modify it.
public class WifiUpgradeResultTableDef extends TableDef {

    public static final WifiUpgradeResultTableDef WIFI_UPGRADE_RESULT = new WifiUpgradeResultTableDef();

    public final QueryColumn DESC = new QueryColumn(this, "desc");

    public final QueryColumn WIFIID = new QueryColumn(this, "wifiid");

    public final QueryColumn DEVICEID = new QueryColumn(this, "deviceid");

    public final QueryColumn POLICY_ID = new QueryColumn(this, "policyId");

    public final QueryColumn LABELNAME = new QueryColumn(this, "labelname");

    public final QueryColumn PLATFORMID = new QueryColumn(this, "platformid");

    public final QueryColumn RESULTCODE = new QueryColumn(this, "resultcode");

    public final QueryColumn UPDATEDATE = new QueryColumn(this, "updatedate");

    public final QueryColumn AUTOCUSTOMER = new QueryColumn(this, "autocustomer");

    public final QueryColumn OPERATIONDATE = new QueryColumn(this, "operationdate");

    public final QueryColumn ORIGINALVERSION = new QueryColumn(this, "originalversion");

    public final QueryColumn WIFIUPGRADERESULTID = new QueryColumn(this, "wifiupgraderesultid");

    /**
     * 所有字段。
     */
    public final QueryColumn ALL_COLUMNS = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] DEFAULT_COLUMNS = new QueryColumn[]{DESC, WIFIID, DEVICEID, POLICY_ID, LABELNAME, PLATFORMID, RESULTCODE, UPDATEDATE, AUTOCUSTOMER, OPERATIONDATE, ORIGINALVERSION, WIFIUPGRADERESULTID};

    public WifiUpgradeResultTableDef() {
        super("", "wifiupgraderesult");
    }

    private WifiUpgradeResultTableDef(String schema, String name, String alisa) {
        super(schema, name, alisa);
    }

    public WifiUpgradeResultTableDef as(String alias) {
        String key = getNameWithSchema() + "." + alias;
        return getCache(key, k -> new WifiUpgradeResultTableDef("", "wifiupgraderesult", alias));
    }

}
